package com.sirdc.modules.sys.dao;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import com.sirdc.modules.sys.entity.SysFile;
import com.sirdc.modules.sys.filter.SysFileFilter;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ling
 * Date: 2019/11/15
 * Time: 9:55
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@ResponseBody
public class SysFileDao extends StringDao<SysFile> {
    public List<SysFile> query(SysFileFilter filter) {
        GenericQuery query = this.createQuery("obj");
        return query.listResult(filter);
    }
}
